package cn.dakaqi.dao.user;

import cn.dakaqi.entities.user.UserOpenId;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * @author beliveli on 2016/5/29/0029
 */
public interface UserOpenIdDao extends PagingAndSortingRepository<UserOpenId, Long>, JpaSpecificationExecutor<UserOpenId> {
    UserOpenId findByMemberCodeAndType(String memberCode, int type);
    UserOpenId findByOpenIdAndType(String openId, int type);
}
